// Copyright 2013 The Gorilla WebSocket Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

package main

import (
	"github.com/gin-gonic/gin"
)

func main() {
	engine := gin.Default()
	hub := newHub()
	go hub.run()
	engine.GET("/ws", func(c *gin.Context) {
		serveWs(hub, c.Writer, c.Request)
	})
	engine.Run(":8888")
}
